import java.util.Scanner;

public class Homework {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String math = scanner.nextLine();
        String china=scanner.nextLine();
        String english=scanner.nextLine();
        double newMath = Double.parseDouble(math);
        double newChina = Double.parseDouble(china);
        double newEnglish = Double.parseDouble(english);
        double average;
        double min;
        double max;
        double sum;
        average=(newMath+newChina+newEnglish)/3;
        double temp=Math.min(newMath,newChina);
        min=Math.min(temp,newEnglish);
        temp=Math.max(newMath,newChina);
        max=Math.max(temp,newEnglish);
        sum=newMath+newChina+newEnglish;
        System.out.println(average);
        System.out.println(min);
        System.out.println(max);
        System.out.println(sum);
    }
}
